export default class Ok {
    constructor(x,y){
        this.x=x;
        this.y=y;
        this.p=0;
    }
    enableRotate(){
        this.p += (1 * PI / 30) * 1;
        rotate(this.p);
    }
    drawStatic(){
        fill(100, 0, 0);
        ellipse(0, 0, 20, 50);
    }

    run(){
        push();
        translate(this.x, this.y);
        this.enableRotate();
        this.drawStatic();

        pop();
    }

}